package cn.tedu.pojo1;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author :Colin
 * @version 创建时间: 2021/7/17 11:17
 */
@Component
public class Student {
    public String name="王者荣耀";
    //@Autowired//依赖注入 不需要get，set
     Teacher t;

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", t=" + t +
                '}';
    }
}
